//
//  VideoGameTableViewCell.m
//  LOLProject
//
//  Created by lanou3g on 15/5/29.
//  Copyright (c) 2015年 lanou3g.com蓝欧科技. All rights reserved.
//

#import "VideoGameTableViewCell.h"

@implementation VideoGameTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

//将videoGameList的信息显示在cell上
- (void) showVideoGameListOnVideoGameTableViewCell{
    [self.videoGameImageView sd_setImageWithURL:[NSURL URLWithString:self.videoGameList.thumbnail] placeholderImage:[UIImage imageNamed:kPlaceholderImage]];
    self.videoGameName.text=self.videoGameList.name;
    self.videoGamePublished.text=[NSString stringWithFormat:@"发布:%@",[self.videoGameList.published substringToIndex:10]];
    self.videoGameVideo_count.text=[NSString stringWithFormat:@"视频:%@",[self.videoGameList.video_count stringValue]];
    return ;
}

//将dmxy的信息显示在cell上
- (void) showDMXYOnVideoGameTableViewCell{
    self.videoGameImageView.image=[UIImage imageNamed:self.dmxy.imgName];
    self.videoGameName.text=self.dmxy.name;
    self.videoGamePublished.text=[NSString stringWithFormat:@"发布:%@",self.dmxy.published];
    self.videoGameVideo_count.text=[NSString stringWithFormat:@"类型:%@",self.dmxy.kind];
    return ;
}

@end
